Text Styles
The list of text styles used by the library is passed to DxChartsTheme
within the DxChartsTypography
object. It also contains default values for each style.
The object used to store information about text style is androidx.compose.ui.text.TextStyle
.
The font within the chart itself is currently immutable.
By default, library uses Open Sans SemiBold (https://fonts.google.com/specimen/Open+Sans).
Text styles do not include the color parameter; it is set individually for each element based on the color palette parameters.
The table of text styles in the library:
Font size (sp) | Values |
---|---|
130 | aggregationSelectorValue |
90 | selectorValue |
36 | aggregationSelectorTimeUnit numKeyboardButtons |
32 | templatesHeading |
20 | listItem |
16 | noConnectionScreenHeader noConnectionScreenBody createTemplateButtonBody studiesSettingsDropDownMenuItemBody studiesSettingsNumberButtonBody studiesTemplatesListAllIndicatorsTitle templatesListItem studiesSettingsPlotsItems studiesSettingsInputsTitle studiesSettingsInputsBody studiesSettingsSelectorPlotsButton studiesSettingsSelectorInputsButton studiesSettingsPlotsTitle studiesSettingsStudyTitle studiesListItem studiesListTemplatesTitle studiesListIndicatorsTitle studiesListFavouritesTitle studiesListAllIndicatorsTitle studiesTextButton studiesSettingsTextButton dropdownMenuItem settingsToggleRow timezoneRowItem timezoneRowTitle timezoneListItemValue timezoneListItemTitle settingsOnOffSwitch settingsResetButton settingsDropdownItem settingsDropdownRowTitle settingsDropdownRowValue settingsColorChangeRowTitle timezonesListTitle emptyTimezonesListBody settingsListSublistTitle emptySettingsListBody settingsListTitle instrumentListItemValue emptySearchScreenBody studiesCenterTextButtonBody drawingsTextInputHintValue drawingsTextInputBody drawingsTextInputActionBarDoneButtonBody drawingsTextInputActionBarCancelButtonBody drawingsTextInputActionBarTitle drawingsListItemTitle drawingsListSublistTitle drawingsListTitle colorButtonDeleteButtonValue customAggregationSelectorAddButton mainScreenActionBarInstrumentSymbolValue arrowsActionBarDoneButtonValue arrowsActionBarCancelButtonValue searchRowTextFieldBody searchRowCancelButtonValue floatingButtonsText settingsVersionRow studiesSettingsInputsItem createOrderButtonsText |
14 | centerTextScreen |
14 | hintCardTitle |
12 | volumeIndicator tradingWidget textToolbarToggleButton timeframeSelectorButton instrumentListItemDescription newsWidgetBody splitsWidgetTitle earningsWidgetTittle earningsWidgetBasicEpsTitle earningsWidgetDilutesEpsTitle earningsWidgetPeriodEndingTitle earningsWidgetBasicEpsBody earningsWidgetDilutesEpsBody earningsWidgetPeriodEndingBody dividendsWidgetTittle dividendsWidgetGrossTitle dividendsWidgetGrossBody callsWidgetTitle callsWidgetDateTitle callsWidgetDateBody priceChangeWidgetPercentage priceChangeWidgetInstrument candleInfoBody tradingSuspendedBody centerTextScreenHeader centerTextScreenBody orderEntryText protectionText |
How to override default text styles can be found here